
{% extends TEMPLATE_BASE %}

{% block content %}
  <h2 class="title">{{ election.name }} – 注册</h2>

{% if user %}
<p>
    您当前登录为 {{user.user_id}} [{{user.user_type}}]
</p>
{% if voter %}
<p>
    您目前已注册参加本次选举.
</p>
{% else %}
<p>
    您 <em>还未</em> 注册本次选举.
</p>

<form method="post" action="{% url "election@register" election.uuid %}">
<input type="submit" value="register!" />
</form>
{% endif %}

{% else %}
{% endif %}

{% endblock %}